You may not have drained them well enough. Cooked pasta shells should be run under cold water to stop them from cooking before letting them drain. But even after they drain, you should use your hands or a slotted spoon to stir them around. Be sure to get all the excess water out of the middle of the shells.