Fixed a bug regarding ShapeRenderer