fix pageAfter (magic scroll)