Fixed subdivide bug