fixed issue of getting SObjectException in insert/update/upsert