fix bug for windows open pdf