Fixed registry initialization