fix bad status code