Fix bug for former skipGap modification