fixed setting total pages when footer is nil