Fix MAGN-3785  Dynamo hangs after running Sample "Ref Grid Sliders"
Merge pull request #1815 from Randy-Ma/master

Fix MAGN-3785  Dynamo hangs after running Sample "Ref Grid Sliders"