fix using of key instead dist