read variable bugfix