Fix issue with error messages and labels that can't be converted to string