Fixed assignment in if statement.