fix sorting bind / unbind issue