Fixed typo on hash comparison