fixed error in cookDecrypt script