fix register path