fixed #1024, comment pagination fix