corrected error while sending invalid quantity during modify quantity