A few things.
If you've been using the wrong feed, or had pH problems, or ppm problems, or anything.. you need to FLUSH. It is absolutely no good just changing the res without a flush, because all the compounds locked in the roots will just stay there. Give them a 24hr flush of pH adjusted...