Fix leaves quantity logging