Fixing bugs in checking uninstalled certificate