fix the update quantity