Fixed if condition