fix for negative status code