Fix and update regenix template engine