stock control dialog result fix