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

Fixing some major bugs in ntask int.