fix stat bar bug