Fixed error on API call without parameters