The best way to avoid overselling your positions is actually to close your positions by clicking that “close position” button or menu item, in that way, you don’t tell the system how many shares to sell, and the broker can’t even blame you for overselling stocks since you only tell them to close...