fixed compile error

could you please merge this. template has been faulty.
template, so compiler does not complain, because it's never instantiated. sorry for not adding a test.