fix dam deletion bug