found another array-call-by-reference bug