Fix more bugs in creating default users/courses