fix template chain
rollback