Key conversion bug