fixed nhibernation(still not working)