Fix service reg bug