fixed huge bug with predict on multi layer dbn