fix issue of displaying window name