fix template compile problem
fix template compile problem