Fixed the leave game bug.