fix bug with readInfo