fix else bug