this is the fix for setting the amount (update)