fix on-off layout jump when switching cat