fix some registerize crashes