Fixed offline reconnecting crash bug