Fixes array bugs in manager task.