fix for numpy-1.9