Corrections in if else