fixed menu activation bug