fix dam error