fix the competence problem and the redirect path