Fix jumpy tab bar in certain cases