fixed bug in skip/scan