Bug on template matching: test to see if find or contains makes a difference