Fix template metaprogramming mistake