fix core when getting sections while injecting