fix view bar display bug