fix numpy compatitable