fix 998355, last gear of a cart cannot be removed

[merge]