Correct setElement method call in parseArrayField