If two users connect to the system in the same second both would receive the same id. This fix this error.