Terrain and first person controller not colliding

I have a script that allows the first person controller to teleport to the mouse position on mouseclick but when I click on the terrain the first person controller falls through and the background goes blue. I’m assuming this is a collision issue. Is there any way to fix this?

Don’t move to the exact point, move to that point’s x,z but make y + 2 or so.