Fix #3 scan.contains issue