Fix bad wait call.