fixed another bar drawing bug