NPC strange behaviour

Does someone know how to disable this strange behaviour od spawned peds? The’re already fixed position.

Looks like the ped spawns a z unit too high. Have you already decreased that by 1?

e.g.

CreatePed(1, hash, Config.dealerPos[1], Config.dealerPos[2], Config.dealerPos[3]-1, Config.dealerPos[4], false, true)

The ped spawns right. It happend when I am too close to the npc and i give myself a bike. this cause the ped to be like that