API request fixes