Fixed an error in the code regarding the bar.