Mistake in if statement.