fixed getting hash