Fixed a bug in FCFS algorithm.