Fix bugs in refresh_related_bugs
Making the list of related bugs better