Fix profile update - missing parameter in function call.

Fixes #629
Fixes #590
Fixes #591