fix a bug in the PUT request of the legal profiles