setLatencySamples() shifts parameter automation write position

Hey everybody,
I have a plugin with a lot of processing delay, that is also writing FX-Parameters.
when setting setLatencySamples(n_samples) under reaper host, it shifts the write position
for parameter automation n_samples to the right relative to the playhead position.

So how can I compensate the delay also for writing parameter automation data?

Many thanks in advance