fix bar position.