Correct error messages to be a list