fixed template recognition error if no template has never been set