fixed connection object issue