Edit this sentence and make sure it is grammatically correct.
I went to the shopping mall, and made sure buy some presents.
I went to the shopping mall and made sure to buy some presents.
Complete the following task based on the instruction and optional input provided.### Instruction:
Edit this sentence and make sure it is grammatically correct.

### Input:
I went to the shopping mall, and made sure buy some presents.

### Output:
I went to the shopping mall and made sure to buy some presents.