Fix on bugfix#1317, clean parameters missing

Clean fk_parent before updating fk_parent
Merge pull request #1774 from fappels/develop

Fix on bugfix#1317, clean parameters missing