fix profile update - missing parameter in function call

Fix error when updating Profile.

Closes #590 and #591