fix the first page bug