fix for new numpy