fix bug with pagination in custom head mode
rebuild