fixed bug in object sync