Fixed reading bug