Ref #286, fixes arrays not being set