update length cache on open file #71