fix compile error for lua template