Change end to endif

It's not Ruby ;]