fix issue with analyzing ast fragments