rescan bug fix