Fix checksum comparison error.

Closes #402