set synonymMap to null when empty.