fix a bug on CSV read header method