fixed: switching documents