Fix self-dial bug, close issue #169.