Fixed "Invalid read of size 32" errors reported by Valgrind.
Fixed "Invalid read of size 32" errors reported by Valgrind.

bricehulse/dieselc,bricehulse/dieselc,bricehulse/dieselc,bricehulse/dieselc,bricehulse/dieselc