(#3042) - fix upsert function in guide