Fixes folding error after adding nit extern code support