Fix loading order problem with requiregen