Fixed a logic and hash failure