fixed not changing the username after syncing a resource