fix DomainClass template
make plugin profile extend base profile