Fix crash when changing from F8/F9 to any other test.