Fixed bug in SHA verification