fix array pushing