fix else branch