fix a bug related to component id in generated WKDeploy.xml. the id should always start from 0