Fixed a bug that allowed multiple connections with the same client