fixed bug in user resource