Fixed the rendering of obstacle.