Fixed missing end in if statement