Fixed issue with -list-targets where it sometimes failed to report all targets