fix template miss