fix the reading bug