fixed fileService bugs