Fixed some access bugs in the userapi.