Fixed bug where changes to captured variables from outside the dsl scope weren't picked up