fix empty server bug