fixed the broken length issuses