When this happened to my washer, I found that the drain hose was kinked so the water drained too slowly to get all the water out by the end of the cycle. You can get a new hose or just shorten the one you have.
If that's not the problem, listen during the final spin cycle to see if your washer is spraying water when it should not be. |