Fix registration plugin setup.