Perhaps the template you're using isn't made for your work... Try modifying it or creating your own template. Here are a few suggestions; use an "image segmentation and extraction" code to crop the letters or characters and store them in a location. Use the appropriate template creation m-file to create the template. You can find these codes at the matlab "File Exchange".