fixed bug in relational hashing