Fixed array bugs.