fix states bar bug

fix states bar bug