fixed an error when a timeline had no records on any page