fix highlight rendering crash; fix sectors stack overflow; fix menu crash