fixing status code