Fix when tags is None