fix if status code is not present