Fix location of if + section statements

Looks like you left this change out of the merge.