Fix error applying local task rather than remotely hosted one