Removing empty targets