Fix timeline view displaying invalid documents