Fix the crash on the advanced options menu.