how do I get him to stop hitting his head?!

Sarah
How do I get my 7 1/2 mo to stop hitting his head in his crib, he's starting to try to crawl so he does that rocking thing on all fours and bam! He hits his head each time! No matter where I put him he inches his way to the corner and again bam!