Fix related to issue #13, Trouble with singleTask
Merge pull request #22 from cef62/fix-issue-13

Fix related to issue #13, Trouble with singleTask