Fixed problem with FCFS simulation