Small bugfix in number of items per flush