fix older scipy compatibility issue?