fix sticky bar unstable issue