Fix key number convert