Fixing some major bugs in ntask int.
Merge pull request #45 from iuj/master

Fixing some major bugs in ntask int.