fix template annotation driven