canvas: fixed discretebar dispatch bug