Fix potential bug on refresh object
Fix potential bug