fix stock not deducting