Fixed error at "if" condition