fix source code not to read unnecessary chunks.