Tweak to avoid error when setting exam mode.