Fixed bug with domain consistency