file_length fix