fixed bug in menu change