fix else statement