fix some bugs with user service and file service