Fixed invalid hash errors in hash module