fix number reading bug