fixed some numpy future warnings