Fix badly formatted array