fixes "menu reset by screen rotation" bug