fix domains object bugs