I occasionally get disconnected with a lua error in console.

I modified an existing entity but since then I get disconnected occasionally while interacting with it. I get an error in console which says something like “No owner for entity id (a number)” . I’ll post the actual error if you guys need it to help me.