Fixed a small bug with well depth.