Attempt at fixing privkeys