Corrected hash check