Fixed error while launching 2 consecutive replays + compilation warning