Properly handle multiple data selections.