fixed an error in main.cpp that was stopping proper hash generation