fix key length.