optimized breakpoint calculation. fixed issues with breakpoints on fixed grids.