fixed error on API call without parameters