fix a bug from when $window changed to $wid in the execute action