fix reconnect - was always false