Condition to skip to any page does not work correctly.