fixing DBN not covergence with MNIST dataset