Fixed bug with hexagonal packing