Fix in OGR data reading

Fix bugs on reading OGR formats