Officials say water scare could have been averted