Fix broken generator template