Fixed Crash on leaving server