fixing bug with properties not being read