fix bug when site have no domain
remove unused line