fixed missing return of everror