Fixed  bug in pagination #33