fix template selection in processAction