fix PersistentConfig with Object type issues