fix bug in chop scan, to do validation