As time passes, chains and gear clusters (either freewheel or cassette) mate. Once this happens neither will gracefully accept a replacement of the other. You need to buy a new chain. Your derailleur is probably fine, but the limit screws should be adjusted for the new cassette.