Fix error on skipping tiles while reading file