Fixed error in condition evaluation