udpated bar correctly fix