More minor tweaks

Course ID should now set correctly, and fixed a bug which caused a
failure when faculty were manipulating courses