fixed a deprecation warning in numpy