email error when stock is out, fixed #692