fixed a mistake in CDeepBeliefNetwork

@vigsterkr fixed issue #2403