bug in array transfer code - fixed