fix a nil table
fix a bug of server mode