Was incorrectly pushing an array into an array