fix to api