get rid of stray endif