fixed bug in quantity checking when returning items