fix bar view bug