Tree Asset in Terrain have offset capsule collider

Some context: I have a terrain generator script that will generate a different height map every time I play. On this terrain I also add a script to randomly place tree prefab on the new terrain.
The problem I am having right now is whenever the terrain and tree regenerate, the tree’s capsule collider from last terrain stays in place. I thought there might be some problem with the sequence that things are generated and placed. However, I’ve tried to reassign collider to the position of the new tree using a script during run time, but that doesn’t seem to fix anything.


Caption: the green capsule is the collider and the tree is placed using the same script as terrain generator, and I believe they are created at the same step