Fixed if else syntax