fix embedly error handler