fix missmatch between iv and key