Wait for activity takes an array

Fix #691