fix an unbind bug