Need to fully restore ctx after hit testing shape.