attempt to fix for old numpy