fix first page bug