fixed template error with pins