Reconnect added. Bug removed.