fix registry import.