Fix main array