exam mode bug fixes