fix bug scan devices