Spline - Circular arc - Endpoints not straight

Hi all,

Anybody have an idea what i could implement/change to resolve this?
Do i need to calculate the tangents on my own?

Thanks and best regards,

Maik