Bug with bagsize fixed.