template matching for 0.8.3 fixed