fix to the legal profile backend
Merge remote-tracking branch 'refs/remotes/origin/master'