Fix interface to doms