fixed a bug, and fixed menu input