fix bugs of updating Object type