fixed a bug in following page