fixed routing bugs with completing tasks