Small fixes for api calls not working