Working around some compiler

  Template functions is not resolved by some compiler. Just do it by hand.