Fix: template function added incorrectly