Fixed bug in tocgen href.target call.