fix calculation of LG lengths in assembly.allmaps