Fixes status codes