fixed scipy issue