Fixes a bug when starting new task from paused task
Fixes a bug when resuming queued task