Fixed if-syntax