Fixed Error with Encrypt