fixed undefined link bug