Fixes terrible input method retrieval bug.