fixed clinic id generation