overlay deleted when scanning was unsuccessful