fix array definition which worked on newer numpy, but not here