Fix the cancel action on the renderer due to spatial index

Fix the cancel action on the renderer due to spatial index