Fixed a bug that meant infinite clients were created.