fix physics engine crash when cloning
Merge commit '19a7be0' into production