Fix scanning status bug