(dpb y) fix guard condition with second index