Page Break Function Not Behaving Consistently