fixed error in API