Fixes api requests