Committing array problems