[CONTINUUM-2494] fixed regression. wrong placement of idx++ which is the cause why project doesn't build