NHibernate formula bug fix