Fix not to back if the state is already expired
Merge branch 'fix-unexpected-backing-to-the-last-page'

Close gh-132.