Fixes bug when status code is negative