fixed decrypted string error
Updated main