fix for error with api request