data length fix