Fix early binding problem in perform-task