Fix reader bug