Condition to Skip a page not working