Fix not being able to open same document twice in a row on desktop