Fixed the declare -A issue.

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