Fix userdata template : context can be rootfactory