Fixed template param replacing