fixed a bug with the new wait command