fix quantity problem