Fix the bin packing algorithm for the day view