fix the compile error by add template parameters

Just fix a small compile error, some compliers may not induce the template parameters automatically