fix document pop on entity pop