Fix failure with old versions of Numpy