Fix sencha touch 2.1 issue with templating