May have fixed entity registry crash
WARNING: Rending of physics may not function correctly!