Fixed hash comparison issue