Fix a bug when reading only one band data