document handling on launch fixed