add missing tonumber in read