Fix Register example