Problem with customizable NPC

Self-created NPCs who can move around freely occasionally disappear or run through walls.