Fixing incorrect syntax for arrays