fix bugs
revise quantity for item