Skip to page condition is not working