Fix some crashes in scan menu's