fix error handling from classifier