Fix a bug for compressed version in velocity template file. close #770