fixed bug in deep autoencoder feedforward