FIxed a bug - domain class registration