fix bug for pulling template files from theme instead module