fixed bug in menu state