fix when target is undefined in router#handleClick_