fix for numpy1.6