Here're two sentences confuse me:
Luckily I remembered to put on sun cream when I went sunbathing yesterday.
Luckily I remembered putting on sun cream when I went sunbathing yesterday.
'Doing' is primarily used for actions that have done and apparently the action of ‘putting on sun cream’ finished, but it seems that the first sentence ('to do')is correct...