fix bug for server