Fixed runall issue with forloop of adding the programs from the resident list to the ready queue.