Fix for "'tuple' object is not callable" when using --digest flag

I was having issues when using the --digest flag, using this code fixed it.