last_connection = nil bug