There are a lot of extra newlines in this file. In general you should probably just have one blank line between each relevant hunk, rather than 2 or 3.