bugfixes BarLine

changed the order of bars and lines