Fix bar_length being depending on orientation.