fix bug in the legalprofile page