Fixed error while requiring indexgen