Added correction for grid length ( 4 or 6 digits), correction for data extraction not completed