Fix an issue that document couldn't open in Gapplin