Update issue found with declare -A

declare -a to replace declare -A. This issue was happening on mac.