Fixing implementation of dead keys