fix registry