fix the first page issue