Fixed bug that causes crashes when removing objects from the scene.
Merge pull request #124 from Paraknight/master

Fixed bug that causes crashes when removing objects from the scene.