remove ending wait