Fixing vigenere function