Fix a bug with bind()