Small bugfix in handling menu stack