handle bar error