fix a bug on server