Fixed: if the request fails, the callback is now correctly called
Small organization change