bugfix, let connection to be nil