fix a bug in record skip