fix a bug because of known_points being able to return None