You didn't specify which end of the cassette the chain was on when this occurs, whether it's dropping on upshifts, downshifts, or both, if your chain is trimmed to a proper length, or if you have modified the chain line by installing a different crank or bottom bracket. Go back and check and get back to us.