resolved crash when scan