Fixed leaving game bug