fix bug when have one stock