Fixing quiz type error during course restoring.