Fixed a bug on connection limit