Fix bug in userdata reset
Performance improvements for subscribing other users
setType corrected for courseid
capability corrected