fixed status code issue