Fixed issue when selecting public chat because it has no unique identifier.