Very normal for this to happen. When you become aware of the thinking mind chattering ( solving problems/ planning or otherwise) refocus your awareness on the object of your meditation ( breath/sensations, general mindfulness etc not sure what type you are doing) you most likely will have to do this many many times 😊
This ‘coming back to the object of the meditation’ helps the mind develop greater awareness, concentration and discipline. In my experience this is part of meditation.