fixed dimension bug due to softmax vs sigmoid