added check for unowned positions on sell