Merge pull request #198 from natural-law/develop

Find template in the order expected.
Solve an error usage of cocos.Logging.warning().