Improve downspout fitting on gutter
I would suggest that you replace the rigid gutter to pipe adapter with a new one. Adjust the downspout as necessary to make it fit.
What you've got now looks like it will restrict water flow because the flex pipe has a dip in it - effectively a shallow P-trap. Not something you want in an rain gutter. Also, if that's not a tight fit between the flex and rigid piping, you're going to end up with dirt and plant life in the buried section and it will end up backing up and flooding this area.
I can't tell from the picture which way the rigid pipe goes once it's underground, but you may have to dig up a few inches of it to move it so it will once again meet up with the downspout and adapter.