A fix for the keyboard layout API