Fixed a bug related to array handling in formula