fixed apierror