Issue reg nhibernate fixed