Changed the for syntax to see if that solves the error in PJS