fix exam bugs