fixed API call issue