Fixing settings order and checking for error in API response.