kconfig: loop boundary condition fix