fix a bug in skip function