fix else snippet