fix strange 30s delay on changing keyboard layout