Fix the two shared pointers in VertexBasedLimiter.