bug fix on auto detect keybord for windows system