Water main breaks causing legal issues for city