fixed bug in user model (occurred when there were no courses)