fix error in ConnectionManager with last commit.