fixed bug occuring with multiple occurences of the same cacert on a smartcard