Fixed two important bugs: add attitude error and add user to course crash.