fixed configure_link