fix key length