length fix