fix to error in array assignment