fix on error reject