ATL creates wrong registry entries