fix template customization registration
Prepare factored 4.0a3.