fix bug for kate.exe