small bug fixed:templates initialized