fix bug scan  closed