I've used pXent_settype(my,0,0); also in a test level with enemies and didn't have that issue, although I didn't reset the dynamic flag afterwards. maybe the problem is related to resetting that flag?
3D Gamestudio A8 Pro AMD FX 8350 4.00 Ghz 16GB RAM Gigabyte GeForce GTX 960 4GB