fixed ShapeType null pointer