Correct issue with array loop in slatactions