Fix for Creating Task on NHibernate.