fix IF condition