fix with upsert

upsert bug fix