hash length fix