fix deploy_war

fix each_with_index