bug fixes in run-cnn.sh