trivial bug fix: wrong variable assignment

- worker is the worker_id where task is run (-1 indicates wrapper)
- location is the user-desired location of the task