Fixes missing end to if conditional.