fixed the resource error handler