Fixed array errors