fixed bug on hash