fixes to better handle previews with local documents