Fix array assignment