Fixed bad API call