Removing small bug in template tag.