fix $read variable