Fixed a bug in the DBN program