fixed null pointer exception when checking scan status