fix bug with domoffset