fix(main) sendError