Fix contest page range issue

Fix #250