fix error in well