[cvs-nhc98] patch applied (hat): Small bug fix to detect mode, and to function level slicing