fixed correcting quantity left when quantity is edited