Fix referenceerror with array constraint