fixed stupid template errors