wrong if condition