fix a IF condition