DynamicDocument fix