fix inappropriate use of bind()