Fixed a bunch of array issues lel.