fix category flicker