Fixed a memory issue with multiple castle object rendering without clearing