Bug fixed: concurrent access to stock