fixed offline and reconnecting players not working properly