Fixed bug with precalculating bundle sizes