fixed some bug in user and service