Fix for checking stat of the private key