Synchronize LocalId, ParentId and fix sitting/standing