fix bugs in stock plugin