Correcting the registry keys to query.