fix domain len bug