Some fixes about overhang detection. Includes regression tests