fixed connection object bug