fix bug in keymapping_win