Fixed bug that messes action menu when auto switching