Fix problem with the same part of code in each inheriors of GameObjectRenderer in method render(...).