fix bug in redirect skipping2