fixed the single instance registration