FIX  compatibility with old numpy version