fixed a minor bug in competence link creation