Fixed a bug from self to dbn