prevent crash on manuell scan