fix bar size problem