Fix execute variable in expand task.