Template Matcher fixxed