Fixing the profile sync from the auto complete field.

#4373 

WIP.