fixed local variable passing
Merge pull request #426 from YaleSTC/418_watch_data_objects

fixed local variable passing