Fix array instantiation in form submit handler