fixes an else statement (wrong place)