Fixed bug that set the limit of repair tasks to 1.

Really bad bug, corrected now.