Fixing reading bug.