Fix to not write BarObjects
Cleaning