Fixed small bug where quantity never reduced below 1