fix a unknown bug: do not know why, do not know why it was fixed; change reader logic