Fixed a few errors involving the arrays.