fix error response in category