fixed small bug, when it comes to template data changes