Eternal require loop bug fix