Conditions based on quantity not working