Fixed modes.py bugs

NB: courses/models and courses_working/models are now identical