[Issue #240] Fix the autoskip deleting non-matching closing pair