Added going to index when disconnected