fixed small problem with key initialisation disturbing the transformation