fix registry problems