This bug appears when you sell an item at a spaceport, then load a game that was saved before your sale (and you are still in the same area). If you go to the spaceport, your sold items are still there, even if in your save game you still have them. This can be exploited to dup items!