Fixed if statment