Fix:  small mistake in condition