fixed menu api < 11