fixed coding error with hashes