Fixed privatekey lookup