Fix erroneous condition