Fixed if() condition