FirstOrDefault() to Single

original code

should be