fixed a bug in the menu