fixing a bug related to wait in combination with aliases that expand to multiple...