(Try) Fixes problems when starting and sending the document