Fix register bug in alpha theme.