bug fixes

solve a bug in related competences