Fixing some major bugs in ntask int.