fixed the generated open menu