Fix a few cases in which strings were being returned as errors