Fix automatic reconnections