Fix AttributeError caused by unused bind