Fix duplicate menu bug