fix error in sale_stock after wrong merging