fixed error holding deleted certificates in memory