fix pi scan