prevent error when returning to document list from unprepared doc