Remove stray endif

Closes #369.