Fix API requests