Conditional page skip does not appear to be working properly