From simple pattern matching (throughout the file modified is set together mit the history item) this looks like this should be inside the following if. If this is indeed the case, the same holds for  camera_menu_select.