Fixes bug in bindConnection.