Fix `if` closing.
Merge pull request #833 from gunn/patch-1

Fix `if` closing.