Fixes API call using HTTParty