Correct any grammar problems in the following text:
When its color changed, I put the sliced onions, mushrooms and eggplants.
When its color changed, I put sliced onions, mushrooms, and eggplant in the pan.