Fixed bugs in round robin

There were several bugs causing processes to execute in the
incorrect order