fix bug in stock

Signed-off-by: Karel Kellner <karel@kellner.be>